package com.iphanta.community.user.mapper;

import com.iphanta.community.user.entity.UserBasicInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 墨声 E-mail: zehong.hongframe.huang@gmail.com
 * create time: 2/22/22 11:39 AM
 */
@Mapper
public interface UserBasicInfoMapper {


    Integer insert(UserBasicInfo user);

    UserBasicInfo selectByUid(@Param("uid") String uid);

    Integer updateUser(UserBasicInfo user);

    List<String> test();

    List<UserBasicInfo> query(@Param("nickname") String nickname,
                              @Param("uid") String uid);

    int modifyTagCodes(@Param("uid") String uid,
                       @Param("tagCodes") String tagCodes);

}
